package com.zxl.live.screen.screen.ui.helper.data;

import com.zxl.live.screen.screen.constant.LockerEnv;

/**
 * Created by Administrator on 2018/1/9.
 */

public class SuiScreenExDataHelper {

    public static String getMinImage(SuiScreenDataHelper.DataType dataType, int position) {
        if (dataType == SuiScreenDataHelper.DataType.KUONGBU) {
            return String.format("http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/screen/data/guitu%s.png", position + 1);
        } else if (dataType == SuiScreenDataHelper.DataType.SUI) {
            return String.format("http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/screen/data/smallcrack%s.png", position + 1);
        } else if (dataType == SuiScreenDataHelper.DataType.SYSTEM_ERROR) {
            switch (position) {
                case 0:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222102621531.png";
                case 1:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222136941751.png";
                case 2:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222159161801.png";
                case 3:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222214629720.png";
                case 4:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222228698688.png";
            }
        } else if (dataType == SuiScreenDataHelper.DataType.ANIMATION) {
            switch (position) {
                case 0:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/ccat.png";
                case 1:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318693192383.png";
                case 2:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318885915474.png";
                case 3:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318850662975.png";
                case 4:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318822077301.png";
                case 5:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318797989093.png";
                case 6:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318731755227.png";
            }
        }
        return "";
    }

    public static String getPreviewImage(SuiScreenDataHelper.DataType dataType, int position) {
        if (dataType == SuiScreenDataHelper.DataType.KUONGBU) {
            return String.format("http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/screen/data/midguitu%s.png", position + 1);
        } else if (dataType == SuiScreenDataHelper.DataType.SUI) {
            return String.format("http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/screen/data/midcrack%s.png", position + 1);
        } else if (dataType == SuiScreenDataHelper.DataType.SYSTEM_ERROR) {
            switch (position) {
                case 0:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222097778247.png";
                case 1:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222132329450.png";
                case 2:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222159161801.png";
                case 3:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222212419415.png";
                case 4:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222226792177.png";
            }
        } else if (dataType == SuiScreenDataHelper.DataType.ANIMATION) {
            switch (position) {
                case 0:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318971357319.png";
                case 1:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318687406497.png";
                case 2:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318879473355.png";
                case 3:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318841634050.png";
                case 4:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318815409737.png";
                case 5:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318790491328.png";
                case 6:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/1513318720013236.png";
            }
        }
        return "";
    }

    public static String getMaxImage(SuiScreenDataHelper.DataType dataType, int position) {
        if (dataType == SuiScreenDataHelper.DataType.KUONGBU) {
            return String.format("http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/screen/data/maxguitu%s.png", position + 1);
        } else if (dataType == SuiScreenDataHelper.DataType.SUI) {
            return String.format("http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/screen/data/maxcrack%s.png", position + 1);
        } else if (dataType == SuiScreenDataHelper.DataType.SYSTEM_ERROR) {
            switch (position) {
                case 2:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222148646366.png";
                case 3:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222209498173.png";
                case 4:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/systemerror/1513222224296667.png";
            }
        } else if (dataType == SuiScreenDataHelper.DataType.ANIMATION) {
            switch (position) {
                case 0:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/newcat.zip.attname";
                case 1:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/tuzis.zip.attname";
                case 2:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/newgecko.zip.attname";
                case 3:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/butterfly.zip.attname";
                case 4:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/konglong.zip.attname";
                case 5:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/qingwamax.zip.attname";
                case 6:
                    return "http://zxl-public.oss-cn-shenzhen.aliyuncs.com/effect/ainm/xiyiyellow.zip.attname";
            }
        }
        return "";
    }

    public static String getMaxImagePath(SuiScreenDataHelper.DataType dataType, int position) {
        return LockerEnv.Path.SUI_SCREEN + getMaxImage(dataType, position).hashCode();
    }
}
